﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace ManilaToday
{
    static class Native
    {
        public const uint WM_USER = 0x0400;

        [DllImport("coredll.dll", SetLastError = true)]
        public static extern IntPtr FindWindow(string lpszClass, string lpszWindow);

        [DllImport("coredll.dll", SetLastError = true)]
        public static extern short PostMessage(IntPtr hwnd, uint message, short wParam, short lParam);

        [DllImport("OptionsCaller.dll", SetLastError = true)]
        public static extern bool RunOptionsDialog(string path, IntPtr parentHwnd);

        //public delegate IntPtr DlgCallback(IntPtr hwnd, uint uMsg, int wParam, int lParam);

        //[DllImport("coredll.dll", SetLastError = true)]
        //public static extern IntPtr DialogBox(IntPtr hInstance, string template, IntPtr hWndParent, DlgCallback lpDialogFunc);

        //[DllImport("coredll.dll", SetLastError = true)]
        //public static extern IntPtr LoadLibrary(string FileName);

        //[DllImport("coredll.dll", SetLastError = true)]
        //public static extern bool FreeLibrary(IntPtr hModule);
        
        //[DllImport("coredll.dll", SetLastError = true)]
        //public static extern IntPtr GetProcAddress(IntPtr hModule, IntPtr ProcName);        
        
        //[DllImport("coredll.dll", SetLastError = true)]
        //public static extern bool ShowWindow(IntPtr hwnd, int showState);
    }
}
